package mixins

import clases._
import clases.Alquilable

trait ConLuces extends Alquilable {
  override def horaMinimaDeJuego = 0
  override def horaMaximaDeJuego = 24
  
  abstract override def tuPrecio(reserva: Reserva): Double = super.tuPrecio(reserva) * factorNoche(reserva)

  def factorNoche(reserva: Reserva) = if (reserva.esDeNoche) 1.2 else 1

}